package com.example.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;


public class EasyuiResult<T> {
    private Long total;     //总条数
    private List<T> rows = new ArrayList<>();     //当前页的数据
    
    public EasyuiResult() {
    }
    
    public EasyuiResult(final Long total, final List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
    
    public Long getTotal() {
        return total;
    }
    
    public void setTotal(final Long total) {
        this.total = total;
    }
    
    public List<T> getRows() {
        return rows;
    }
    
    public void setRows(final List<T> rows) {
        this.rows = rows;
    }
}
